#ifndef __PWM_H
#define __PWM_H

#include "main.h"

extern TIM_HandleTypeDef htim1;

void PWM_Init(void);

void PWM_Stop(void);

void PWM_Channel1(float Compare);

void PWM_Channel2(float Compare);

void PWM_Channel3(float Compare);

void set_pwm_param(TIM_HandleTypeDef *htim, uint32_t Channel, float Compare);

void TIM1_Init(void);

void HAL_TIM_MspPostInit(TIM_HandleTypeDef *htim);

#endif // !__PWM_H
